package io.renren.modules.upk.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.upk.dao.UpkTradeSubGoodOrderDao;
import io.renren.modules.upk.entity.UpkTradeSubGoodOrderEntity;
import io.renren.modules.upk.service.UpkTradeSubGoodOrderService;


@Service("upkTradeSubGoodOrderService")
public class UpkTradeSubGoodOrderServiceImpl extends ServiceImpl<UpkTradeSubGoodOrderDao, UpkTradeSubGoodOrderEntity> implements UpkTradeSubGoodOrderService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<UpkTradeSubGoodOrderEntity> page = this.selectPage(
                new Query<UpkTradeSubGoodOrderEntity>(params).getPage(),
                new EntityWrapper<UpkTradeSubGoodOrderEntity>()
        );

        return new PageUtils(page);
    }

}
